import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  strict: true,
  state: {
    count: 0,
    isShowInsert: false,
    timeDivision: [17, 19, 7]  //write mid black
  },
  mutations: {
    transmit (state, param) {
      state.count = param.num
    },
    syncShow (state, param) {
      state.isShowInsert = param.bool
    }
  }
})

export default store
